# FROM tomcat:8.5.91
#FROM inspireso/tomcat:8-jdk8-alpine
#FROM fabric8/java-alpine-openjdk8-jdk
FROM mirrors.ecan-sports.com:5000/java-alpine-openjdk8-jdk
RUN apk update \
  && apk add --no-cache fontconfig ttf-dejavu
#RUN echo "Asia/Shanghai" > /etc/timezone
# 设置时区为上海
RUN apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && apk del tzdata

# && apk add install --assume-yes apt-utils \
# && apk add install --assume-yes software-properties-common \
# && apk add install --assume-yes dbus \
# && apk add install --assume-yes cgmanager \
# && apk add install --assume-yes glib-networking \
# && apk add install --assume-yes libnih-dbus-dev \
# && apk add install --assume-yes dconf-cli \
# && apk add install --assume-yes fontconfig
ENV DB_URL=$DB_URL
ENV DB_PORT=$DB_PORT
ENV DB_USER=$DB_USER
ENV DB_PWD=$DB_PWD
ENV DB_NAME=$DB_NAME

#ENV MERCHANT_ID=$MERCHANT_ID
#ENV PRIVATE_KEY_PATH=$PRIVATE_KEY_PATH
#ENV MERCHANT_SERIAL_NUMBER=$MERCHANT_SERIAL_NUMBER
#ENV API_V3_KEY=$API_V3_KEY
#ENV WEIXIN_NOTIFY_URL=$WEIXIN_NOTIFY_URL
#ENV WEIXIN_REFUND_NOTIFY_URL=$WEIXIN_REFUND_NOTIFY_URL

# COPY guns-admin-1.0.0.jar /deployments/guns-admin-1.0.0.jar
COPY eduServer-1.0-SNAPSHOT.jar /eduServer-1.0-SNAPSHOT.jar
# CMD ["catalina.sh", "run"]
# RUN mkdir /springboot
# WORKDIR /springboot
# COPY guns-admin-1.0.0.jar /springboot
CMD ["java", "-jar","eduServer-1.0-SNAPSHOT.jar"]